import service from '@/utils/request'

export const useUserApi = (id: number) => {
	return service.get('/im/user/' + id)
}

export const useUserBanApi = (data: any) => {
	return service.put('/im/user/ban', data)
}

export const useUserUnbanApi = (data: any) => {
	return service.put('/im/user/unban', data)
}

export const useUserFindByNameApi = (name: String) => {
	return service.get('/im/user/findByName?name=' + name)
}
